<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/fwb/fwb_online_good_info.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/fwb/fwb_online_good_info.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'fwb_onLine_good_reputation_id',
                footer: "Foots",
                cnName: '五星好评中奖信息',
                name: 'fwb/fwb_online_good_info',
                url: "/fwb_online_good_info/",
                sortName: "warranty_number"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"warranty_number":"","status":"","CreateDate":""});
            const searchFormOptions = ref([[{"title":"报修单号","field":"warranty_number","type":"like"},{"dataKey":"服务部审核状态","data":[],"title":"审核状态","field":"status","type":"select"}],[{"title":"中奖时间","field":"CreateDate","type":"date"}]]);
            const columns = ref([{field:'fwb_onLine_good_reputation_id',title:'评价主键id',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'fwb_prize_draw_info_id',title:'中奖信息表id',type:'guid',width:110,hidden:true,align:'left'},
                       {field:'warranty_number',title:'报修单号',type:'string',width:220,align:'left',sort:true},
                       {field:'status',title:'审核状态',type:'string',bind:{ key:'服务部审核状态',data:[]},width:110,align:'left'},
                       {field:'evaluater_name',title:'姓名',type:'string',width:220,align:'left'},
                       {field:'vin',title:'vin码',type:'string',width:120,align:'left'},
                       {field:'CreateDate',title:'中奖时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'contact_address',title:'地址',type:'string',width:220,align:'left'},
                       {field:'phone_number',title:'联系方式',type:'string',width:220,align:'left'},
                       {field:'evaluate_mark',title:'评价星级',type:'int',width:110,align:'left'},
                       {field:'evaluate_opinion',title:'意见反馈',type:'string',width:220,align:'left'},
                       {field:'prize_name',title:'中奖奖品',type:'string',width:220,align:'left'},
                       {field:'winner_name',title:'收货人',type:'string',width:220,align:'left'},
                       {field:'winner_phone_number',title:'收货人联系方式',type:'string',width:220,align:'left'},
                       {field:'winner_delivery_address',title:'收货地址',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
